Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoMapping: Optimized reloading of rule maps #4165

Merged
merged 2 commits into from
Jan 30, 2025

Conversation

bjorn
Copy link
Member

@bjorn bjorn commented Jan 29, 2025

By only deleting the AutoMapper instances for changed rule map files, the reloading becomes much faster since it can just reuse the still loaded instances.

Additionally, on-demand loading of rule maps avoids loading rule maps which do not apply to the current map based on file name filters.

Finally, re-parsing of the rules.txt file(s) now only happens when any of such files were changed, not when rule maps have changed.

By only deleting the AutoMapper instances for changed rule map files,
the reloading becomes much faster since it can just reuse the still
loaded instances.
@bjorn bjorn force-pushed the automapping-optimize-rule-reload branch from a593a2a to 7f6bf7f Compare January 30, 2025 15:10
This optimizes AutoMapping operations by not loading rule maps which do
not apply to the current map based on file name filters.

Also, re-parsing of the rules.txt file(s) now only happens when any of
such files were changed, not when rule maps have changed.
@bjorn bjorn force-pushed the automapping-optimize-rule-reload branch from 7f6bf7f to 339b504 Compare January 30, 2025 15:12
@bjorn bjorn merged commit 339b504 into mapeditor:master Jan 30, 2025
16 checks passed
@bjorn bjorn deleted the automapping-optimize-rule-reload branch January 30, 2025 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant